<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/

Route::any('/test',[
    'uses' => '\App\Http\Controllers\Api\IndexController@index',
    'as'   => '11'
]);
Route::any('/test2',[
    'uses' => '\App\Http\Controllers\Api\IndexController@test2',
    'as'   => 'test2'
]);
Route::post('upload',[
    'uses' => 'FileController@upload',
    'as'   => 'upload'
]);
Route::any('/cjzdebug',function (){
    return view('debug');
});

Route::any('/send-async-post', [\App\Http\Controllers\AsyncPostController::class, 'sendAsyncPost']);
Route::any('/callback', [\App\Http\Controllers\AsyncPostController::class, 'handleCallback']);
